Skip to content

Conversation

miguelg719
Copy link
Collaborator

Contrib from @Samat-Imamov

Issue: #1030

why

Allowing authentication using provided client certificates during local runs.

what changed

Additional configuration value 'clientCertificates' that's being passed during Playwright context creation.

test plan

This is additional support for already existing Playwright feature so Playwright team's internal test for this feature should be enough. But to test locally, provide client certificate config according to this API -
https://playwright.dev/docs/api/class-browser#browser-new-context-option-client-certificates

  • and authenticate to whichever service that certificate belongs to.

Issue: #1030

# why
Allowing authentication using provided client certificates during local
runs.

# what changed
Additional configuration value 'clientCertificates' that's being passed
during Playwright context creation.

# test plan
This is additional support for already existing Playwright feature so
Playwright team's internal test for this feature should be enough. But
to test locally, provide client certificate config according to this API
-
https://playwright.dev/docs/api/class-browser#browser-new-context-option-client-certificates
- and authenticate to whichever service that certificate belongs to.
Copy link

changeset-bot bot commented Sep 16, 2025

🦋 Changeset detected

Latest commit: 44a2760

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@miguelg719 miguelg719 marked this pull request as ready for review September 16, 2025 15:34
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Summary

This PR adds support for client certificates in local browser environments by introducing a new clientCertificates configuration option. The implementation follows Playwright's native client certificate API, allowing users to authenticate with services that require client certificate authentication during local test runs.

• Added clientCertificates property to LocalBrowserLaunchOptions interface with comprehensive certificate format support
• Integrated client certificates into the browser context creation in getBrowser function
• Created appropriate changeset marking this as a major version change
• Removed export of deprecated AISdkClient from main index

Confidence score: 4/5

  • This PR is safe to merge with minimal risk
  • The implementation is straightforward, follows Playwright's native API exactly, and only adds optional functionality without breaking existing behavior. The type definitions are comprehensive and the integration is clean.
  • No files require special attention

2 files reviewed, no comments

Edit Code Review Bot Settings | Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants